<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2025/6/7
  Time: 14:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>校园论坛管理系统 - 登录</title>
    <link rel="stylesheet" href="css/forum_login.css">
</head>
<body>
<div class="login-container">
    <div class="logo">
        <h1>校园论坛管理系统</h1>
        <p>欢迎回来，请登录您的账号</p>
    </div>

    <form id="loginForm" action="${pageContext.request.contextPath}/login" method="post">
        <div class="input-group">
            <label for="username">账号</label>
            <input type="text" id="username" name="username" placeholder="请输入学号/工号" required>
            <div class="error-message" id="username-error"></div>
        </div>

        <div class="input-group">
            <label for="password">密码</label>
            <a href="retrieve_password.jsp" class="forgot-password" id="forgotPassword">忘记密码?</a>
            <input type="password" id="password" name="password" placeholder="请输入密码" required>
            <div class="error-message" id="password-error"></div>
        </div>

        <button type="submit" class="login-btn">登录</button>
    </form>

    <div class="footer">
        还没有账号? <a href="index.jsp">立即注册</a>
    </div>
</div>

<script src="./js/forum_login.js" charset="UTF-8"></script>
</body>
</html>